package com.example.geange.demo01;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by geange on 16-7-12.
 */
public class MyDBOpenhelper extends SQLiteOpenHelper{



    public MyDBOpenhelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        sqLiteDatabase.execSQL("CREATE TABLE weather(citycodenum VARCHAR(20) PRIMARY KEY, citycode VARCHAR(20), weatherType VARCHAR(20), temperature VARCHAR(20), freshflag  INTEGER) ");
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }


}
